From: Sebastian Keller Date: Mon, 29 Jun 2020 20:51:41 +0000 (+0200) Subject: altTab: Remove down arrow when removing an app from switcher X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~193 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=845122497b487860fb90f531194068876da95911;p=gnome-shell.git altTab: Remove down arrow when removing an app from switcher The arrow of the removed app was still left in the list with the visibility of the arrow still depending on the original list order. This could either lead to apps with just one window now suddenly having a down arrow or apps with multiple windows not having one. If the last window in the list had a down arrow, it would have been displayed outside the window switcher. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2935 https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1340 --- diff --git a/js/ui/altTab.js b/js/ui/altTab.js index b56cc49cf..d637e2fbf 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -852,6 +852,9 @@ class AppSwitcher extends SwitcherPopup.SwitcherList { if (index === -1) return; + this._arrows[index].destroy(); + this._arrows.splice(index, 1); + this.icons.splice(index, 1); this.removeItem(index); }